import { connect } from "react-redux";
import Carts from "../../components/shoppingCart/Carstlist";
import cartlist  from "../../actions/cartList/cartListAction";
// console.log(Carts)
const mapStateToProps = state => {
  return {
      cartItem:state.cartList.cartList
  };
};
const mapDispatchToProps = dispatch => {
  return {
    cartList() {
      dispatch(cartlist());
    }
  };
};

let Cartcontainer = connect(
  mapStateToProps,
  mapDispatchToProps
)(Carts);

export default Cartcontainer;
